package com.xiaoximen;

import android.content.Context;

public class Account {
	
	public static final String PREF_ACCOUNT = "account";
	public static final String KEY_ID = "_id";
	public static final String KEY_NAME = "name";

	static boolean isAccountAvailable(Context context) {
		return context.getSharedPreferences(PREF_ACCOUNT, Context.MODE_PRIVATE)
				.getInt(KEY_ID, 0) > 0;
	}
}
